package org.dc.entity;

import java.util.Calendar;
import java.util.Date;

/**
 * @user: Vladimir Chernishov
 * @date: 3/8/12
 * @time: 1:33 PM
 */
public class WorkDay {

    private Date date;
    private int shiftId;
    private transient Calendar calendar;
    
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Calendar getCalendar(){
        if(calendar == null){
            calendar = Calendar.getInstance();
            calendar.setTime(date);
        }
        return calendar;
    }
    
    public int getShiftId() {
        return shiftId;
    }

    public void setShiftId(int shift) {
        this.shiftId = shift;
    }
}
